<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
    <title>华迅直购</title>
    <link rel="stylesheet" type="text/css" href="css/root.css"/>
    <link rel="stylesheet" type="text/css" href="css/pay/main.css"/>
    <link rel="stylesheet" type="text/css" href="css/order/order.css"/>
    <link rel="stylesheet" type="text/css" href="css/address/address.css"/>
    <script type="text/javascript" src="js/jquery-3.1.1.min.js?ver=2.0.4" charset="utf-8"></script>
    <script type="text/javascript" src="js/underscore-min.js"></script>
    <script type="text/javascript" src="js/moment.min.js"></script>
    <script src="js/base/api.js"></script>
    <script src="js/base/base.js"></script>
    <script src="js/base/vue-filter.js"></script>
    <script src="js/vue/vue.js"></script>
    <script src="cordova.js"></script>

    <script type="text/javascript" src="js/magiclamp.js?ver=2.0.3" charset="utf-8"></script>


    <script type="text/javascript" src="js/order/user_dispute_goods_order.js?ver=2.0.4" charset="utf-8"></script>

</head>
<body>
<div id="user_goods_order_page">
    <header>
        <a @click="page_back" v-if="baseConfig.is_phone" class="h-left back-btn">
            <i class="iconfont icon-fanhui"></i>
        </a>
        <h1 class="h-title">
            售后服务
        </h1>
    </header>

    <div id="root" class="h-t-bar">
        <div class="pay-gs-list g-wrap margin-bottom">
            <div class="g-item">
                <div class="g-item-wrap">
                            <span class="g-img">
                                <img :src="baseConfig.qn_host+dispute_orderinfo.goods_order_item__small_image__fileurl+'?imageView2/1/w/70/h/70'">
                            </span>
                    <div class="g-i-info">
                        <p class="g-i-name order-goods-title">{{dispute_orderinfo.goods_order_item__name}}</p>
                        <p class="order-goods-mark margin-bottom" v-if="dispute_orderinfo.goods_order_item__gg">
                            {{dispute_orderinfo.goods_order_item__gg}}</p>
                        <p class="order-goods-mark" v-if="dispute_orderinfo.goods_order_item__bz" v-text="'备注:'+dispute_orderinfo.goods_order_item__bz"></p>
                        <p class="order-goods-mark" v-if="dispute_orderinfo.goods_order_item__goods_id">商品ID:{{dispute_orderinfo.goods_order_item__goods_id}}</p>
                        <p class="order-count">
                          <span class="order-goods-price" v-text="price_filter(dispute_orderinfo.goods_order_item__price)"></span>
                        </p>
                    </div>
                </div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">服务编号：</div>
                <div class="right">{{dispute_orderinfo.id}}</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">所属订单：</div>
                <div class="right">{{dispute_orderinfo.order_id}}</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left" >状态</div>
                <div class="right" v-if="dispute_orderinfo.doing_type==0">尚未处理</div>
                <div class="right" v-if="dispute_orderinfo.doing_type==1">买卖双方协商</div>
                <div class="right" v-if="dispute_orderinfo.doing_type==2">平台介入</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">商品数量：</div>
                <div class="right">{{dispute_orderinfo.num}}</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">原因：</div>
                <div class="right" v-if="dispute_orderinfo.reason==0">假货</div>
                <div class="right" v-if="dispute_orderinfo.reason==1">质量问题</div>
                <div class="right" v-if="dispute_orderinfo.reason==2">错发漏发</div>
                <div class="right" v-if="dispute_orderinfo.reason==3">不喜欢</div>
                <div class="right" v-if="dispute_orderinfo.reason==4">其他</div>
                <div class="right" v-if="dispute_orderinfo.reason==5">未发货</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">类型：</div>
                <div class="right" v-if="dispute_orderinfo.dispute_type==0">退货</div>
                <div class="right" v-if="dispute_orderinfo.dispute_type==1">换货</div>
                <div class="right" v-if="dispute_orderinfo.dispute_type==2">缺货</div>
            </div>
        </div>
        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">描述：</div>
                <div class="right">{{dispute_orderinfo.message}}</div>
            </div>
        </div>

        <div class="g-item" v-if="dispute_orderinfo.imgs_json&&dispute_orderinfo.imgs_json.length>0">
            <div class="g-item-wrap">
                    <span class="g-img" v-for="img in dispute_orderinfo.imgs_json">
                        <img :src="show_head_img(img.url, '&imageView2/1/w/70/h/70')" @click="imageClick(img.url)" >
                    </span>

            </div>
        </div>


        <div class="padding-1 white" >
            <div class="order-list">
                <div class="left">进度：</div>
                <div class="right" v-if="dispute_orderinfo.step_status==0">提交申请</div>
                <div class="right" v-if="dispute_orderinfo.step_status==1">代购审核</div>
                <div class="right" v-if="dispute_orderinfo.step_status==2">代购收货</div>
                <div class="right" v-if="dispute_orderinfo.step_status==31">退款</div>
                <div class="right" v-if="dispute_orderinfo.step_status==32">代购寄换新货</div>
                <div class="right" v-if="dispute_orderinfo.step_status==33">代购邮寄新货</div>
                <div class="right" v-if="dispute_orderinfo.step_status==4">完成</div>
            </div>
        </div>

        <div class="padding-1 white" v-if="dispute_orderinfo.host_dispute_result==0&&dispute_orderinfo.step_status!=0" >
            <div class="order-list">
                <div class="left">代购意见：</div>
                <div class="right ">正在协商</div>
            </div>
        </div>
        <div class="padding-1 white" v-if="dispute_orderinfo.host_dispute_result==1" >
            <div class="order-list">
                <div class="left">代购拒绝：</div>
                <div class="right ">{{dispute_orderinfo.result}}</div>
            </div>
        </div>
        <div class="padding-1 white" v-if="dispute_orderinfo.host_dispute_result==2" >
            <div class="order-list">
                <div class="left">代购意见：</div>
                <div class="right ">同意客户要求</div>
            </div>
        </div>

        <div class="padding-1 white" v-if="dispute_orderinfo.step_status==4&&dispute_orderinfo.result" >
            <div class="order-list">
                <div class="left">结论：</div>
                <div class="right-muilt ">{{dispute_orderinfo.result}}</div>
            </div>
        </div>
        <div class="padding-1 white" v-if="dispute_orderinfo.step_status==4" >
            <div class="order-list">
                <div class="left">处理结果：</div>
                <div class="right " v-if="dispute_orderinfo.dispute_result==1">拒绝客户的建议</div>
                <div class="right " v-if="dispute_orderinfo.dispute_result==2">同意客户的建议</div>
                <div class="right " v-if="dispute_orderinfo.dispute_result==3">客户关闭</div>
            </div>
        </div>

        <div class="padding-1 white" v-if="dispute_orderinfo.express_no">
            <div class="order-list">
                <div class="left">退货快递：</div>
                <div class="right">
                    <span v-if="dispute_orderinfo.express__name">{{dispute_orderinfo.express__name}}</span>
                    <span v-if="!dispute_orderinfo.express__name">{{dispute_orderinfo.express_name}}</span>
                </div>
            </div>
        </div>
        <div class="padding-1 white" v-if="dispute_orderinfo.express_no">
            <div class="order-list">
                <div class="left">退货单号：</div>
                <div class="right">{{dispute_orderinfo.express_no}}</div>
            </div>
        </div>


        <div class="pay-btn-group border-top" v-if="dispute_orderinfo.step_status==0">

            <button type="button" class="open-payorder-btn" @click="start_do_dispute(dispute_orderinfo)" >
                开始处理
            </button>

        </div>
        <form class="address-container" id="join-form" method="post" v-if="refuse_step">
            <div>请与买方沟通后再做决定</div>


            <textarea class="address-input address-textarea" rows="4" placeholder="拒绝的原因" name="message"
                      v-model="disput_message.message" maxlength="200"></textarea>

            <button class="add-bom-btn-right" type="button" @click="refuse_message_fun">提交</button>
            <button class="add-bom-btn-left" type="button" @click="refuse_step=!refuse_step">取消</button>
        </form>
        <form class="address-container" method="post" v-if="agree_refund_step">
            <div>请与买方沟通后再做决定</div>


            <textarea class="address-input address-textarea" rows="4" placeholder="退货地址及注意事项" name="message"
                      v-model="disput_address.message" maxlength="200"></textarea>

            <button class="add-bom-btn-right" type="button" @click="agree_refund_step_fun">提交</button>
            <button class="add-bom-btn-left" type="button" @click="agree_refund_step=!agree_refund_step">取消</button>
        </form>
        <form class="address-container" method="post" v-if="agree_price_step">
            <div>请与买方沟通后再做决定</div>


            <input type="number" class="address-input" placeholder="退款额度" v-model="disput_price.price">

            <button class="add-bom-btn-right" type="button" @click="refund_money_order_fun">提交</button>
            <button class="add-bom-btn-left" type="button" @click="agree_price_step=!agree_price_step">取消</button>
        </form>
        <div class="pay-btn-group border-top" v-if="!refuse_step&&!agree_price_step&&!agree_refund_step">
            <button type="button" class="open-payorder-btn"  @click="open_order(dispute_orderinfo)" >
                查看订单
            </button>
            <button type="button" class="open-payorder-btn" v-if="dispute_orderinfo.step_status==1&&dispute_orderinfo.host_dispute_result==0" @click="agree_refund_step=!agree_refund_step">
                同意退货
            </button>
            <button type="button" class="delete-payorder-btn" @click="refuse_step=!refuse_step" v-if="dispute_orderinfo.step_status==1&&dispute_orderinfo.host_dispute_result==0">
                驳回
            </button>

            <button type="button" class="open-payorder-btn" v-if="(dispute_orderinfo.step_status==1||dispute_orderinfo.step_status==2||dispute_orderinfo.step_status==31)&&dispute_orderinfo.host_dispute_result!=1" @click="agree_price_step=!agree_price_step" >
                退款
            </button>
            <button type="button" class="open-payorder-btn" v-if="dispute_orderinfo.step_status==2" @click="receive_goods_host_fun" >
                收到快递
            </button>

            <button type="button" class="open-payorder-btn" @click="open_im_2_user(dispute_orderinfo)" >
                私聊
            </button>
            <button type="button" class="open-payorder-btn" v-if="dispute_orderinfo.doing_type!=2&&dispute_orderinfo.dispute_result==0" @click="appley_sys_dispute_order" >
                申请华迅平台介入
            </button>

        </div>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
        <br/>
    </div>
</div>
</body>
</html>